package com.plian.system.entity.sys;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * @description: 国资委制度
 * @author: gangan
 * @create: 2020-08-26 14:41
 */
@Data
@TableName("sys_system_record")
@EqualsAndHashCode(callSuper = true)
public class SystemRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * 制度名称
     */
    private String systemName;

    /**
     * 归口部门
     */
     private String departmentCode;

    /**
     * 制度类型
     */
     private String systemTypeCode;

    /**
     * 说明
     */
     private String instructions;

    /**
     * 所属集团
     */
     private String orgId;

    /**
     * 填报时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
     private Date fillingTime;

    /**
     * 1正常 2失效
     */
     private Integer systemStatus;

    /**
     * 开始生效时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    private Date effectTime;

    /**
     * 失效时间
     */
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date failureTime;

    /**
     * 表单类型
     */
    private String formType;

    @TableField(exist = false)
    private List<HashMap> docList;
}
